package edu.whu.notepal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.whu.notepal.pojo.Group;
import edu.whu.notepal.pojo.Subscriber;
import edu.whu.notepal.pojo.User;

import java.util.List;

/**
* @author 陈磊
* @description 针对表【t_subscribers】的数据库操作Service
* @createDate 2022-11-29 21:00:21
*/
public interface SubscriberService extends IService<Subscriber> {

    void addGroup(Long userId, Long groupId);

    void exitGroup(Long userId, Long groupId);

    List<Long> getSubscribersId(Long groupId);

    List<Group> getGroups(Long id);
}